package com.etc.dao;

import java.util.List;

import com.etc.entity.Article;
import com.etc.util.PageData;

public interface IArticleDao {
	//查询所有article
	public List<Article> queryArticles() ;

	//添加文章
	public boolean addArticle(Article article);
	
	//根据文章编号删除文章
	public boolean delArticle(int articleId) ;
	
	//修改文章内容
	public boolean updateArticle(Article article);
	
	//根据文章标题模糊查询
	public List<Article> queryArticleByLike(String articleLike);
	//查询前3条
	public List<Article> queryTopArticles();
	
	//通过id查找文章
	public Article queryArticleById(int articleId);
	//模糊查询前3条
	public  List<Article> seachByTitle(String title);
	
	//分页+模糊查询
	public PageData queryArticleByLikePage(int pageNo,int pageSize,String titleKey);
	
}
